import type { RouteRecordRaw } from 'vue-router'

export default [
  {
    path: '/',
    alias: '/:pathMatch(.*)*',
    component: () => import('@/components/layout/DefaultLayout.vue'),
    children: [
      {
        path: '',
        name: 'Dashboard',
        meta: { module: 'HOME' },
        component: () => import('@/views/dashboard'),
      },
    ],
  },
  {
    path: '/dev-ops-monitor/alarm-record/:id',
    name: 'MailDetail',
    component: () =>
      import('@/views/dev-ops-monitor/alarm-record/EmailLogDetail.vue'),
  },
  {
    path: '/sign-in',
    name: 'SignIn',
    component: () => import('@/views/sign-in'),
    meta: { ignoreAuth: true },
  },
] satisfies readonly RouteRecordRaw[]
